package com.atguigu.demo.data;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: He Wentao
 * @date: 2022/8/21 17:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExcelReadData {

    // index 属性：表示字段所对应的 列索引
    @ExcelProperty(index = 0)
    private int id;

    @ExcelProperty(index = 1)
    private String name;

}
